package com.tf.six.entity;

// Notification.java - 通知实体

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("notification")
public class Notification {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;        // 接收用户ID
    private String title;       // 通知标题
    private String content;     // 通知内容
    private Integer type;       // 通知类型(0=系统,1=交易,2=评价)
    private Integer status;     // 阅读状态(0=未读,1=已读)
    private LocalDateTime createTime;
}
